<template>
  <div>
    <v-touch class="swiper-div" :swipe-options="{direction: 'horizontal'}">
      <head-top
        :title="navBarTitle"
        :right-text="navBarRightText"
        :right-router="leftRouter"
      ></head-top>
      <product-edit :list-item-code="Number($route.params.type)"></product-edit>
    </v-touch>
  </div>
</template>

<script>
import HeadTop from "@/components/HeadTop"
import ProductEdit from "@/components/product/edit";
export default {
  components: {
    ProductEdit,
    HeadTop,
  },
  name: "ProductEditPage",
  data() {
    return {
      navBarTitle: this.$route.params.type == this.GLOBAL.listItemType.product.toStorage ? '新增拟入库商品' : '新增正式入库商品',
      navBarRightText:'',
      leftRouter: this.GLOBAL.pathSetting.product.main,
    };
  },
  methods: {
    onSwiperRight() {
      this.$router.go(-1)
    }
  },
};
</script>
<style scoped>
</style>